Results matching “character set” from Ye Olde Rad Blog III

I have something to show you. Something very exciting. Sexy, even. "What it is, Rad?" you ask, oozing with curiosity. "A picture of a European supermodel? Lying scantily-clad on the sandy beaches of St. Tropez?"

Sexy SwimsuitNo, my fellow technoluster. Something far more enticing. And seductive. See » HERE (.. but only if you're 18).

No, your eyes don't deceive you. That's right » a screen-shot from phpMyAdmin showing the tables of a MODx database using the UTF-8 character set and utf8_general_ci collation. Smokin', ain't it?

"But, Rad. I thought you said that was impossible?" It is! .. For mere mortals.

"How did you ever pull it off?" Well, I can tell you that banging my head against the wall produced only limited success. It may've even impeded the process. (I can't remember.)

To be honest, I'm not really sure WHAT the magic-bullet was. Cuz I made a number of changes (including enabling suPHP)  .. which I'll tell you all about. I learned a lot. But first, I need to take care of some biz .. and get some coffee. (Was up pretty late last night. Where did I put that Advil?)

Feliz año nuevo. Most Content Management Systems (such as Drupal & MODx) work in conjunction with (require) a database. So do blogs (such as Movable Type) & forums (such as SMF).

MySQL is the world's most popular database software for web-based applications (.. such as CMS's & blogs & forums). It's what I use. It's the only database system I've ever used.

cPanel / Web Host ManagerThe Rad VPS (« physically located downtown Chicago) uses the cPanel/WHM control panel to help administer the site. cPanel makes it stupid-easy to create a new MySQL database.

You simply » enter a descriptive name for your new DATABASE (such as » rad_modx) and click the button labeled 'Create Database.' cPanel talks to MySQL and creates the database for you. Viola! Done. Too easy.

To use your new DATABASE, you'll also need to create a USER (such as » rad_modx, conveniently same as the database_name). Give this USER a password and click the button labeled » 'Create User.' Voila! Done creating new USER.

Lastly you need to assign a particular USER to a particular DATABASE. You do this by selecting both from their respective drop-down menus (one lists all available DATABASES, the other all possible USERS) and clicking the button labeled 'Add.'

Then you assign to this USER the appropriate PRIVILEDGES (normally ALL) necessary to perform the database functions. Click the button labeled 'Make Changes' and you're done. Voila! As if this weren't easy enough, cPanel even has a wizard to walk you thru these steps.

MySQL Database ManagementSo, in order to configure a database to work with a particular web application (such as Drupal or MODx), you need 3 pieces of info:

  1. database_name
  2. user_name
  3. user_password

Couldn't be easier. Tho I sometimes forget the final step of actually assigning the USER to the DATABASE (after creating both). Creating new DATABASES is not something I do on a regular basis.

RADIFIED currently uses 5 databases. Three for the blogs » 1-each for the 3 different versions of Movable Type I have installed .. based on v263 (installed 2003), v335 (installed 2007) & v432 (installed 2008). Another for Drupal (2008). And 1 for MODx Revolution (beta5), which I installed a few days ago.

The Rad forum, which uses YaBB, doesn't use a database. (At least not yet.) Might be worth noting here that Movable Type, Drupal, MODx & YaBB are all OPEN SOURCE (better than free) .. as is MySQL.

While installing MODx a few days ago, I noticed they include an option to test your database connection & credentials .. to see if MODx can access it okay.

Conditional Love = Manipulation

|

An article posted in last week's NY Times has been gnawing at me all weekend. It cites a study performed by two Israelis & a "leading American expert on the psychology of motivation." The single-page piece is titled » "When a Parent's Love Comes with Conditions" .. or » "When 'I Love You' means 'Do as I Say'."

Conditional Love = Manipulation The article can be summed with the following quote:

"The primary message of all types of conditional parenting is that children must earn a parent's love. A steady diet of that, Rogers warned, and children might eventually need a therapist to provide the unconditional acceptance they didn't get when it counted."

Doesn't it seem odd that a study was required to determine that rationing of love & acceptance (like gasoline during a shortage) based on 'performance' .. is detrimental to children? Duh.

First, conditional love is not love. Let's call it by its real name » manipulation. And it's the worst kind of manipulation, cuz children, especially young ones, are at the mercy of their parents.

Moreover, they do not yet possess the skills necessary to recognize and defend against such insidious tactics  .. from people they're so dependent upon (for eveything).

Now, do you know anyone who enjoys being manipulated? Cuz I don't. Heck, even people who enjoy pain don't like being manipulated. Cuz it doesn't really hurt; it just feels slimy. [Speaking of slime & pain, refer to my comments about boiling a frog near the end.]

Not very difficult to tell the difference, either. Kids (who happen to be particularly sensitive) can spot a fake all-the-way across the coffee shop and will turn away .. while gravitating wholeheartedly to the genuine. You can actually observe this play out.

There are many things a parent can use as leverage to encourage (or discourage) a particular behavior. But love should never be included in the leverage toolkit. Same goes for affection & attention .. things too precious to be used as mere bargaining chips.

Withholding love & affection based on behavior is cruel. Sure, it might elicit the desired response .. in the short term. But the child will grow to resent it (.. as does anybody who's being manipulated). Used consistently and frequently enough, it will instill deep-seated feelings of inadequacy .. that may never go away. (You might even know someone like this .. with deformed self-esteem.)

Many times, when a child is acting out, I'd wager it's *because* he or she is not getting the emotional support they need (from a parent). That would be like telling a hungry child » "Stop fussing or I won't give you any food."

[ In the military, we had a saying » "The beatings will continue until morale improves." Same principle. ]

Whichever side of the great nature vs nurture debate you tend to favor, you always return to » the parents .. as the prime causal agent for how a child turns out .. whether it be on count of their genes or their parenting methods (.. or a combination of both).

We were all kids once. (Well, most of us.) So we all have many years of first-hand experience from which to derive our opinions .. of what works, and what doesn't (.. and what really suks). My point is, it's not rocket science.

Reblog this post [with Zemanta]

Learning the Unix Shell (bash)

|

Last month I mentioned a quest to learn the Unix shell .. specifically » bash (the Bourne Again SHell). Almost done. Currently ~80% complete .. enough to feel reasonably confident at a terminal.

Linux shell terminalThe 'shell' is simply a program that lets you interact with the operating system (actually the kernel, to be more precise) ..

.. by taking your (text-based) commands and passing them on to the kernel. In my case, this kernel happens to be » Linux (which is but one variant of Unix).

The term 'shell' comes from the notion that this software acts like a 'layer' that sits between you and the operating system .. similar to the way an egg-shell sits between you and your hard-boiled breakfast.

The shell can be intimidating, cuz it uses a (text-based) command-line interface (CLI). No intuitive GUI to help you along. You either know the commands or you don't.

Didn't take me long to realize the CLI was where Linux's true power resides. When we upgraded the site, for example, to a Virtual Private Server, the support-techs who helped me with the move all used the command-line to work their mojo.

Most Linux distros do indeed come with an excellent GUI (usually either KDE or Gnome). But (but!) the Rad VPS does not. Which is why it became necessary to learn the Unix shell. (Something I tried to avoid.)

The Rad VPS is based on CentOS (Community ENTerprise Operating System), an off-shoot of Red Hat, which is probably the most popular of all enterprise Linux distros (.. and now a new member of the S&P 500, a development you may find telling).

GUIs (such as KDE or Gnome) require lots of memory/RAM. My laptop, for example, has 2-gigs, but the Rad VPS comes with an allotment of only 512-MB (.. upgraded from 384 just today).

With that limited amount, I need to run not only all the standard web applications .. such as Apache (web server), MySQL (database), Perl (scripting language), etc. but also cPanel/WHM.

So there's not much RAM left to run a GUI. [ Don't think I didn't inquire about installing a GUI. =) ]

Bottom line » if you wanna administer your own VPS, you need to learn the Shell. So that's what I'm doing. (Of course, there have been distractions, making progress uneven.)

The Zen of Sensitivity & Suffering

|

Was doing good until sunset on Father's day. Then it got to me and the blues arrived. Used to resist sadness, fight it. Now I just go with it. Roll with it. Flow with it, like a canoe downstream. (Resisting and fighting just wears me out.) Been here enough times that I know the drill. No big deal.

yin yang There's a prophetic verse in Isaiah saying Jesus was ".. a man of sorrows, and acquainted with grief." So it seems okay to be sad, tho not particularly pleasant. I get kinda numb, distant. Feel like crying.

Been reading a book on Zen a friend gave me. Interesting ideas, perspectives. For example, here's a passage I found particularly thought-provoking.

The context is about rejecting the notion that anything that doesn't involve serious effort (and usually pain-n-suffering) is somehow unworthy or worthless. But the concept can be applied in other ways. See here:

Now there do seem to be times when verve & vigor are appropriate. Times when force works with, and not against nature. As Shakespeare said, "There is a tide in the affairs of men, which, taken at the flood, leads on to fortune." [Julius Caesar, Act 4, scene 3]

But when the tide is not at flood, when mere brawn is up against granite, the effort to go against nature seems more stupid than splendid.

At best, one could say with the French general of the Charge of the Light Brigade, "C'est magnifique, mais ce n'est pas la guerre." To call it splendid is to base one's evaluation of man on his animal strength over what is more characteristically human » his intelligence.

This mis-evaluation is perhaps based on the common distrust of intelligence on the part of those who lack it, as something tricky, cunning and weak-spined. But this mis-evaluation also reduces the standards of human character until they are more applicable to pachyderms and rocks than human beings.

For after all, is the final test of character really just in seeing how much suffering you can endure? Your ability to endure depends on how insensitive you are. But being human is about, above all, being sensitive. And this means, the measure of character becomes, among other things, the quality rather than the quantity of your suffering.

The fourth is my favorite holiday. Don't know another living soul who prefers it over all others.

Balboa Pier, Newport Beach, California

Maybe cuz it's the only holiday celebrated outdoors at night. No matter where you might be, summer nights are likely cotton-candy sweet.

Or perhaps, it's the fireworks .. or maybe, the thing we're really celebrating (» freedom, baby!) .. that does it for me.

Had the Bug last night. Braved the crowds and drove down to the Balboa pier .. where we watched the sun set while sharing a root beer float (from Ruby's). He was clearly more interested however, in watching folks fish, and asking to peek in their catch-buckets.

Logged into my Paypal account today, planning to move fund$ (from my checking account) .. in preparation for paying this month's web hosting fee (with our new provider) .. when I noticed...

Sydney, Australia .. Home of Good Things.. there was already plenty of cash in the account. (Woohoo!) How did it get in there?

You might've noticed the small Make a Donation button .. found in the left side-bar (have to scroll down). As you know, I don't solicit donations. But if readers feel inspired, there it is.

Timely Donations

Several generous readers donated amounts ranging from $50 to $100 (less a small percentage Paypal keeps for their trouble). Boy, was I stoked!

Funny how donations always seem to arrive when they're needed most.

As a side note, I find it interesting that most donations (by far) come from » Texans. Why is that? Are they more generous than most? .. or drawn more strongly to the site? I have lived in many states, but Texas isn't one of them. So I can't say for sure.

Priorities & Sacrifice

Speaking of money .. all my life, cash was never a problem. I mean (not to brag), I was earning close to $100K fifteen years ago .. (back when 100K was still 100K). I paid ca$h for a Porsche (the Rad-mobile) .. back in the '80's. Even at age 11, I was delivering newspapers 7 days a week. So I've always had plenty of spending-cash .. for long as I can recall.

But ever since I started going to court a few years ago .. well, that wiped me out. And you can't work nuclear just any ol' place. Reactors aren't found on every street corner, or in every town. (Or even in every state.)

Find recent content on the main index or look in the archives to find all content.